4. Notwithstanding paragraphs 1 to 3 of section 3, a person resident in Québec retains that status where:(1) he is registered as a student in an educational institution and is pursuing a program of studies outside Québec;
(2) he is staying outside Québec as a full-time, unpaid trainee at a university, an institution affiliated with a university, a research institute or a governmental or international agency;
(3) he is outside Québec in the employ of the Gouvernement du Québec or the Government of Canada or an agency thereof;
(4) he is staying outside Québec for fewer than 12 consecutive months, while his spouse and children remain in Québec or while he keeps a dwelling there, for the purpose of assuming a temporary employment or fulfilling a contract, and where he returns to Québec at least once a year or notifies the Société de l’assurance automobile du Québec that he is unable to meet that requirement; or
(5) he is employed by a non-profit organization having its head office in Canada and works outside Canada within the framework of an international assistance or cooperation program.
Where the spouse and any minor child of a person referred to in the first paragraph have the status of a person resident in Québec and where they accompany that person, they retain that status for as long as they live permanently with that person.